package com.kingzoder.food.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ZoderKing
 */
@Schema(name = "评论VO实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVO implements Serializable {
    @Schema(name = "评论ID")
    private Long id;

    @Schema(name = "关联食谱ID")
    private Long recipeId;

    @Schema(name = "评论用户ID")
    private Long userId;

    @Schema(name = "用户昵称")
    private String nickname;

    @Schema(name = "用户头像URL")
    private String avatar;

    @Schema(name = "评分等级")
    private Integer rating;

    @Schema(name = "评论内容")
    private String text;
}
